package com.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("班级实体")
@TableName(value = "team")
public class Team extends BaseEntity {

    @ApiModelProperty(value = "班级名称", example = "HB软件182")
    private String name;

    //一班一资源库
    @ApiModelProperty(value = "资源库id", example = "1L")
    private Long StoreHouseId;

    @ApiModelProperty(value = "资源库")
    @TableField(exist = false)
    private StoreHouse storeHouse;

    @ApiModelProperty(value = "班级学生列表")
    @TableField(exist = false)
    private List<User> userList;
}
